#ifndef SNPosReader_h__
#define SNPosReader_h__
//--------------------------------------------------------
#include <stdio.h>
#include <string>
#include <opencv2/core/core.hpp>
#include <QString>
#include <QVector>
//--------------------------------------------------------

class SNPosImageReader
{
public:
	SNPosImageReader();
	~SNPosImageReader();

	bool Create(const QString filename, cv::Size win_size);
	bool Get(cv::Mat &_img);
	void Restart();

private:
	
	QVector<cv::Mat> Images;

	//short* Vec;
	//FILE*  File;
	int    Count;
	int    VecSize;
	int    Last;
	int    Base;
};
//--------------------------------------------------------
#endif // SNPosReader_h__
